{% extends "layout.html" %}
{% block body %}

{% if error %}<div class='alert alert-danger'><strong> {{ error }} </strong></div>{% endif %}

{% for message in get_flashed_messages() %}
     <div class="alert alert-success">{{ message }}</div>
{% endfor %}

 <h2>登录</h2>
  <form action="{{ url_for('account.login') }}" method="POST">
    <div class="form-group">
      <label for="username">用户名:</label>
      <input type="text" class="form-control" id="username" name="username">
    </div>
    <div class="form-group">
      <label for="password">密码:</label>
      <input type="password" class="form-control" id="password" name="password">
    </div>
      <button type="submit" class="btn btn-primary">Submit</button>
  </form>

{% endblock %}
